package ai.people.netmon.framework.domain.graph.request;

import com.people.core.validator.annotation.GraphTagValue;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Map;

/**
 * @author zhenglin
 * @date 2022/5/13
 */
@Data
public class InsertRequest {
    /**
     * 标签名
     *
     * @mock facebook
     */
    @NotBlank(message = "标签名不能为空")
    @GraphTagValue
    private String tagName;
    /**
     * 标签属性
     *
     * @mock {
     *     "userId": "213821831",
     *     "userName": "zhenglin",
     *     "nickName": "xxs",
     *     "urls": "http://www.baidu.com",
     *     "password": "12gdsghd,@",
     *     "brief": "http://www.baidu.com"
     * }
     */
    private Map<String, Object> tagProperties;
}
